using UnityEngine;
using UnityEngine.UI;

namespace Voodoo.Sauce.Internal.CrossPromo
{
	public class CrossPromoResizer : MonoBehaviour
	{
		[SerializeField]
		private GameObject _voodooCrossPromo;

		private void Start()
		{
			ResizeDefaultFormat();
		}

		private void ResizeDefaultFormat()
		{
			GetComponent<CanvasScaler>().referenceResolution = (((float)Screen.width / (float)Screen.height <= 1f) ? new Vector2(1080f, 1920f) : new Vector2(1920f, 1080f));
			_voodooCrossPromo.GetComponent<RectTransform>().sizeDelta = new Vector2(423.52942f, 488.2353f);
		}
	}
}
